<?php
include_once '../tools/DBtools.php';

//连接数据库
DBtools::InitDB();
$sql="select * from accountinfo ";
$result = DBtools::select($sql);

DbTools::close();

?>

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>用户列表</title>
</head>
<body>
<table border="1" cellpadding="10px" cellspacing="0">
    <tr>
        <th>ID号</th>
        <th>身份证号</th>
        <th>手机号码</th>
        <th>有效姓名</th>
        <th>开户时间</th>
    </tr>
    <?php
    for ($i=0;$i<count($result);$i++){


    ?>
    <tr>
        <td><?php echo $result[$i]['AccountId'];?></td>
        <td><?php echo $result[$i]['AccountCode'];?></td>
        <td><?php echo $result[$i]['AccountPhone'];?></td>
        <td><?php echo $result[$i]['RealName'];?></td>
        <td><?php echo $result[$i]['OpenTime'];?></td>
    </tr>
    <?php
    }
    ?>
</table>
</body>
</html>